<template>
  <div class="app-container">
    <div class="page-filter mb10 fl">
      <el-row>
        <el-col :span="24">
          <el-tabs v-model="active" type="card" @tab-click="handleTabs">
            <el-tab-pane label="考勤汇总" name="2" />
            <el-tab-pane label="人员信息" name="1" />
            <el-tab-pane label="车辆汇总" name="3" />
            <el-tab-pane label="证书汇总" name="4" />
            <el-tab-pane label="人员证书汇总" name="5" />
          </el-tabs>
        </el-col>
        <el-col v-if="active === '1'" :span="24">
          <Staff :info="info" />
        </el-col>
        <el-col v-if="active === '2'" :span="24">
          <Attendance :info="info" />
        </el-col>
        <el-col v-if="active === '3'" :span="24">
          <Cart :info="info" />
        </el-col>
        <el-col v-if="active === '4'" :span="24">
          <Company :info="info" />
        </el-col>
        <el-col v-if="active === '5'" :span="24">
          <Credential :info="info" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import Staff from './components/administration/staff'
import Attendance from './components/administration/attendance'
import Cart from './components/administration/cart'
import Company from './components/administration/company'
import Credential from './components/administration/credential'

export default {
  name: '',
  components: { Staff, Attendance, Cart, Company, Credential },
  inject: ['app'],
  data() {
    return {
      active: '2',
      info: {}
    }
  },
  created() {
  },
  methods: {
    handleTabs(e) {
    }
  }
}
</script>
